package com.mew.common.rest.user;

import com.zebra.common.ZebraBaseMessage;
import io.netty.buffer.ByteBuf;
import lombok.*;

/**
 * @author dylin
 * @create 2021/4/8
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class UserDetailedInfoResponseMessage extends ZebraBaseMessage<UserDetailedInfoResponseMessage> {
    private Long id;
    private String gid;
    private Integer vipLevel;//VIP等级
    private Integer headPath;//头像
    private String nickname;//名称
    private String signature;//描述
    private Integer isFriend;//是否是好友

    @Override
    public void write(ByteBuf b) {

        writeLong(b,id);
        writeString(b,gid);
        writeInt(b,vipLevel);
        writeInt(b,headPath);
        writeString(b,nickname);
        writeString(b,signature);
        writeInt(b,isFriend);
    }

    @Override
    public UserDetailedInfoResponseMessage read(ByteBuf byteBuf) {
        return null;
    }
}
